package com.yijiaw.service;

import com.yijiaw.domain.Product;
import com.yijiaw.domain.Producttype;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Product entities
 * 
 */
public interface ProductService {

	/**
	 * Return a count of all Product entity
	 * 
	 */
	public Integer countProducts();

	/**
	 * Delete an existing Producttype entity
	 * 
	 */
	public Product deleteProductProducttype(Integer product_id, Integer related_producttype_id);

	/**
	 */
	public Product findProductByPrimaryKey(Integer id);

	/**
	 * Return all Product entity
	 * 
	 */
	public List<Product> findAllProducts(Integer startResult, Integer maxRows);

	/**
	 * Delete an existing Product entity
	 * 
	 */
	public void deleteProduct(Product product);

	/**
	 * Save an existing Producttype entity
	 * 
	 */
	public Product saveProductProducttype(Integer id_1, Producttype related_producttype);

	/**
	 * Save an existing Product entity
	 * 
	 */
	public void saveProduct(Product product_1);

	/**
	 * Load an existing Product entity
	 * 
	 */
	public Set<Product> loadProducts();
}